﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Forms;
using System.ComponentModel;
using System.Drawing;
namespace UIControls
{
    public class CsMenuStrip : MenuStrip
    {
        public CsMenuStrip():base()
        {
            this.Renderer = new MyRender();
        }
        public class MyRender : ToolStripProfessionalRenderer
        {
            public MyRender():base(new MyColorTable())
            {
                
            }
        }
        public class MyColorTable :ProfessionalColorTable
        {
            public override Color ButtonSelectedHighlightBorder
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }
            public override Color ButtonSelectedBorder
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }

            public override Color ButtonPressedHighlight
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }
            public override Color MenuItemPressedGradientMiddle
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }
            public override Color MenuItemSelected
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }
            public override Color MenuBorder
            {
                get
                {
                    return GlobalUIVar.gBorderColor;
                }
            }
            public override Color MenuItemBorder
            {
                get
                {
                    return GlobalUIVar.gBorderColor;
                }
            }
            public override Color ToolStripGradientMiddle
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }
            public override Color ToolStripBorder
            {
                get
                {
                    return GlobalUIVar.gBorderColor;
                }
            }
            public override Color CheckBackground
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }
           
            public override Color CheckSelectedBackground
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }
            public override Color MenuItemPressedGradientBegin
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }
            public override Color MenuItemSelectedGradientBegin
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }
            public override Color MenuItemSelectedGradientEnd
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }
            public override Color MenuItemPressedGradientEnd
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }
            public override Color MenuStripGradientBegin
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }
            public override Color MenuStripGradientEnd
            {
                get
                {
                    return GlobalUIVar.gSelectedColor;
                }
            }
           
           
        }
        
       
    }
    
}
